﻿using AutoMapper;
using BCDto.Common.FlowRecord;
using BCDto.Common.Wallet;
using BCEntity.Common.FlowRecord;
using BCEntity.Common.Wallet;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MapperProfiles.Common.Wallet
{
    public class WalletProfile : Profile
    {
        public WalletProfile()
        {
            CreateMap<WalletEntity, WalletDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WalletDto, WalletEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WalletRequestDto, WalletEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WalletTransferDto, WalletEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();


            CreateMap<UserFlowRecordDto, UserFlowRecordEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<UserFlowRecordEntity, UserFlowRecordDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            
        }
    }
}
